package com.ivo.act;

import org.activiti.engine.*;
import org.activiti.engine.task.Task;

/**
 * @author wj
 * @version 1.0
 */
public class First {

    public static void main(String[] args) {
        //创建流程引擎
        ProcessEngine engine = ProcessEngines.getDefaultProcessEngine();
        // 得到流程存储服务组件
        RepositoryService repositoryService = engine.getRepositoryService();
        // 得到运行时服务组件
        RuntimeService runtimeService = engine.getRuntimeService();
        // 获取流程任务服务组件
        TaskService taskService = engine.getTaskService();

        // 部署流程文件
        repositoryService.createDeployment()
                .addClasspathResource("bpmn/diagram.bpmn").deploy();
    }
}
